home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / ConnectionTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  3.7 KB  |  177 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        ConnectionTools.h
  3.  
  4.      Contains:    Communications Toolbox Connection Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1988-1999 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __CONNECTIONTOOLS__
  18. #define __CONNECTIONTOOLS__
  19.  
  20. #ifndef __CONDITIONALMACROS__
  21.     #include <ConditionalMacros.h>
  22. #endif
  23.  
  24. #ifndef __DIALOGS__
  25.     #include <Dialogs.h>
  26. #endif
  27.  
  28. #ifndef __CONNECTIONS__
  29.     #include <Connections.h>
  30. #endif
  31.  
  32.  
  33.  
  34.  
  35. #if PRAGMA_ONCE
  36. #pragma once
  37. #endif
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. #if PRAGMA_IMPORT
  44. #pragma import on
  45. #endif
  46.  
  47. #if PRAGMA_STRUCT_ALIGN
  48.     #pragma options align=mac68k
  49. #elif PRAGMA_STRUCT_PACKPUSH
  50.     #pragma pack(push, 2)
  51. #elif PRAGMA_STRUCT_PACK
  52.     #pragma pack(2)
  53. #endif
  54.  
  55. #if CALL_NOT_IN_CARBON
  56. enum {
  57.                                                                 /* messages for DefProc */
  58.     cmInitMsg                    = 0,
  59.     cmDisposeMsg                = 1,
  60.     cmSuspendMsg                = 2,
  61.     cmResumeMsg                    = 3,
  62.     cmMenuMsg                    = 4,
  63.     cmEventMsg                    = 5,
  64.     cmActivateMsg                = 6,
  65.     cmDeactivateMsg                = 7,
  66.     cmIdleMsg                    = 50,
  67.     cmResetMsg                    = 51,
  68.     cmAbortMsg                    = 52,
  69.     cmReadMsg                    = 100,
  70.     cmWriteMsg                    = 101,
  71.     cmStatusMsg                    = 102,
  72.     cmListenMsg                    = 103,
  73.     cmAcceptMsg                    = 104,
  74.     cmCloseMsg                    = 105,
  75.     cmOpenMsg                    = 106,
  76.     cmBreakMsg                    = 107,
  77.     cmIOKillMsg                    = 108,
  78.     cmEnvironsMsg                = 109,                            /* new connection tool messages for ctb 1.1 */
  79.     cmNewIOPBMsg                = 110,
  80.     cmDisposeIOPBMsg            = 111,
  81.     cmGetErrorStringMsg            = 112,
  82.     cmPBReadMsg                    = 113,
  83.     cmPBWriteMsg                = 114,
  84.     cmPBIOKillMsg                = 115
  85. };
  86.  
  87. enum {
  88.                                                                 /*    messages for validate DefProc    */
  89.     cmValidateMsg                = 0,
  90.     cmDefaultMsg                = 1
  91. };
  92.  
  93. enum {
  94.                                                                 /*    messages for Setup DefProc    */
  95.     cmSpreflightMsg                = 0,
  96.     cmSsetupMsg                    = 1,
  97.     cmSitemMsg                    = 2,
  98.     cmSfilterMsg                = 3,
  99.     cmScleanupMsg                = 4
  100. };
  101.  
  102. enum {
  103.                                                                 /*    messages for scripting defProc    */
  104.     cmMgetMsg                    = 0,
  105.     cmMsetMsg                    = 1
  106. };
  107.  
  108. enum {
  109.                                                                 /*    messages for localization defProc    */
  110.     cmL2English                    = 0,
  111.     cmL2Intl                    = 1
  112. };
  113.  
  114. enum {
  115.                                                                 /* private data constants */
  116.     cdefType                    = FOUR_CHAR_CODE('cdef'),        /* main connection definition procedure */
  117.     cvalType                    = FOUR_CHAR_CODE('cval'),        /* validation definition procedure */
  118.     csetType                    = FOUR_CHAR_CODE('cset'),        /* connection setup definition procedure */
  119.     clocType                    = FOUR_CHAR_CODE('cloc'),        /* connection configuration localization defProc */
  120.     cscrType                    = FOUR_CHAR_CODE('cscr'),        /* connection scripting defProc interfaces */
  121.     cbndType                    = FOUR_CHAR_CODE('cbnd'),        /* bundle type for connection */
  122.     cverType                    = FOUR_CHAR_CODE('vers')
  123. };
  124.  
  125.  
  126. struct CMDataBuffer {
  127.     Ptr                             thePtr;
  128.     long                             count;
  129.     CMChannel                         channel;
  130.     CMFlags                         flags;
  131. };
  132. typedef struct CMDataBuffer                CMDataBuffer;
  133. typedef CMDataBuffer *                    CMDataBufferPtr;
  134.  
  135. struct CMCompletorRecord {
  136.     Boolean                         async;
  137.     SInt8                             filler;
  138.     ConnectionCompletionUPP         completionRoutine;
  139. };
  140. typedef struct CMCompletorRecord        CMCompletorRecord;
  141.  
  142. typedef CMCompletorRecord *                CMCompletorPtr;
  143. /*    Private Data Structure    */
  144.  
  145. struct CMSetupStruct {
  146.     DialogPtr                         theDialog;
  147.     short                             count;
  148.     Ptr                             theConfig;
  149.     short                             procID;                        /* procID of the tool    */
  150. };
  151. typedef struct CMSetupStruct            CMSetupStruct;
  152.  
  153. typedef CMSetupStruct *                    CMSetupPtr;
  154. #endif  /* CALL_NOT_IN_CARBON */
  155.  
  156.  
  157. #if PRAGMA_STRUCT_ALIGN
  158.     #pragma options align=reset
  159. #elif PRAGMA_STRUCT_PACKPUSH
  160.     #pragma pack(pop)
  161. #elif PRAGMA_STRUCT_PACK
  162.     #pragma pack()
  163. #endif
  164.  
  165. #ifdef PRAGMA_IMPORT_OFF
  166. #pragma import off
  167. #elif PRAGMA_IMPORT
  168. #pragma import reset
  169. #endif
  170.  
  171. #ifdef __cplusplus
  172. }
  173. #endif
  174.  
  175. #endif /* __CONNECTIONTOOLS__ */
  176.  
  177.